Make gdk build against old X headers
authorMatthias Clasen <mclasen@redhat.com>
Sun, 6 Jun 2010 23:39:12 +0000 (19:39 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 6 Jun 2010 23:40:20 +0000 (19:40 -0400)
The XI.h in RHEL5 is missing some defines that are used
in the new device code.

gdk/x11/gdkdevicemanager-xi.c

index c1c3390525ffbda4ec5eb7575bae3a765214d20b..e11cb58a6b31c84bb434f6dabc888ac334a03625 100644 (file)
@@ -202,6 +202,12 @@ translate_class_info (GdkDevice   *device,
     }
 }
 
+/* old versions of XI.h don't define these */
+#ifndef IsXExtensionKeyboard
+#define IsXExtensionKeyboard 3
+#define IsXExtensionPointer  4
+#endif
+
 static GdkDevice *
 create_device (GdkDeviceManager *device_manager,
                GdkDisplay       *display,